import {ref} from 'vue'
import {defineStore} from 'pinia'

export const useUserStore = defineStore('user', () => {
    // 用户token
    const token = ref(null)

    // 设置用户token
    const setToken = (token) => {
        token.value = newToken
    }
    return {
        token,
        setToken,
    }
}, {
    persist: true
})
